package com.example.sdemo.app.service.impl;

import com.example.sdemo.app.service.CourseService;
import com.example.sdemo.domain.entity.Course;
import com.example.sdemo.infra.mapper.CourseMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class CourseServiceImpl implements CourseService {
    @Resource
    CourseMapper courseMapper;
    @Override
    public Course selectCById(Integer id) {
        return courseMapper.selectCById(id);
    }

    @Override
    public Boolean insertC(Course course) {
        return courseMapper.insertC(course);
    }

    @Override
    public Boolean deleteC(Integer id) {
        return courseMapper.deleteC(id);
    }

    @Override
    public Boolean updateC(Course course) {
        return courseMapper.updateC(course);
    }

    @Override
    public List<Course> selectAll() {
        return courseMapper.selectAll();
    }
}
